#pragma warning(disable : 4996)
#include<stdio.h>
struct TreeNode {
    int val;
    struct TreeNode* left;
    struct TreeNode* right;
    
};
int sumOfLeftLeaves(struct TreeNode* root) {
    // write code here
    int left = 0;
    int right = 0;
    if (root == NULL)
    {
        return 0;
    }
    if (root->left != NULL)
    {
        left= sumOfLeftLeaves(root->left);
    }
    if (root->right == NULL)
    {
        return root->val;
    }
    else
    {
        right = sumOfLeftLeaves(root->right);
    }
    return left + right;
    
}
int main()
{

}